package net.tv90.auth.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "encrypt")
@Data
public class EncryptProperties {
    /**
     * 加密算法 {@link Algorithm}
     */
    private Algorithm algorithm = Algorithm.BASE64;

    /**
     * aes算法的秘钥key 16位
     */
    private String key = "tv90norinco66666";

    /**
     * aes算法的偏移量 16位
     */
    private String iv = "tv90norinco66666";

    public enum Algorithm {
        BASE64, AES
    }
}